﻿@model School.ViewModels.ApplicationOrganization.ApplicationUserVM
@{
    Layout = "_emptyLayout";
 }

<form class="form-horizontal" asp-action="Save" id="personEditor" data-toggle="validator" role="form">
    <input type="hidden" name="ID" id="ID" value="@Model.ID" />
    <input type="hidden" name="IsNew" id="IsNew" value="@Model.IsNew.ToString()" />
    <div class="form-group">
        <label for="Name" class="col-sm-2 control-label">登录名：</label>
        <div class="col-sm-9">
            <input type="text" class="form-control" name="UserName" id="UserName" placeholder="请输入姓名" value="@Model.UserName" required>
        </div>
    </div>
    <div class="form-group">
        <label for="Name" class="col-sm-2 control-label">昵称：</label>
        <div class="col-sm-9">
            <input type="text" class="form-control" name="Name" id="Name" placeholder="请输入姓名" value="@Model.Name" required>
        </div>
    </div>
    <div class="form-group">
        <label for="Name" class="col-sm-2 control-label">地址：</label>
        <div class="col-sm-9">
            <input type="text" class="form-control" name="UserAddress" id="UserAddress" placeholder="请输入地址" value="@Model.UserAddress" required>
        </div>
    </div>
    <div class="form-group">
        <label for="Name" class="col-sm-2 control-label">所在学校：</label>
        <div class="col-sm-9">
            <input type="text" class="form-control" name="School" id="School" placeholder="请输入所在学校" value="@Model.School" required>
        </div>
    </div>

    <div class="form-group">
        <label for="Description" class="col-sm-2 control-label">简要描述：</label>
        <div class="col-sm-9">
            <textarea class="form-control" rows="4" name="Description" id="Description">@Model.Description</textarea>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交数据</button>
        </div>
    </div>
</form>